package pojo;

/**
 * 购物车商品关联表
 */
public class AssociationTable {
    private int tableId;               //商品关联表ID
    private int cartId;                //购物车Id
    private int comm;                   //商品Id
    private int tableAmount;           //商品数量

    public int getTableId() {
        return tableId;
    }

    public void setTableId(int tableId) {
        this.tableId = tableId;
    }

    public int getCartId() {
        return cartId;
    }

    public void setCartId(int cartId) {
        this.cartId = cartId;
    }

    public int getComm() {
        return comm;
    }

    public void setComm(int comm) {
        this.comm = comm;
    }

    public int getTableAmount() {
        return tableAmount;
    }

    public void setTableAmount(int tableAmount) {
        this.tableAmount = tableAmount;
    }

    public AssociationTable(int tableId, int cartId, int comm, int tableAmount) {
        this.tableId = tableId;
        this.cartId = cartId;
        this.comm = comm;
        this.tableAmount = tableAmount;
    }

    public AssociationTable() {
    }

    @Override
    public String toString() {
        return "AssociationTable{" +
                "tableId=" + tableId +
                ", cartId=" + cartId +
                ", comm=" + comm +
                ", tableAmount=" + tableAmount +
                '}';
    }
}
